package com.daisuxia.web.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daisuxia.constant.Constant;
import com.daisuxia.web.dao.IChannelSuperInfoDao;
import com.daisuxia.web.dao.IPaginationDao;
import com.daisuxia.web.dao.IPhoneUrlDao;
import com.daisuxia.web.pojo.*;
import com.daisuxia.web.util.PageConfig;



@Service
public class PhoneUrlService implements IPhoneUrlService {

	@Autowired
	private IPaginationDao paginationDao;
	@Autowired
	private IPhoneUrlDao phoneUrlDao;
	
	@Override
	public PageConfig<PhoneUrl> findPhoneUrlPage(HashMap<String, Object> params) {
		params.put(Constant.NAME_SPACE, "PhoneUrl");
		PageConfig<PhoneUrl> pageConfig = new PageConfig<PhoneUrl>();
		pageConfig = paginationDao.findPage("findAll", "findAllCount", params,"web");
		return pageConfig;

	}

	@Override
	public void insert(PhoneUrl phoneUrl) {
		phoneUrlDao.insert(phoneUrl);		
	}

	@Override
	public void insertBatch(List<PhoneUrl> phoneUrlList) {
		phoneUrlDao.insertBatch(phoneUrlList);
	}

	@Override
	public List<PhoneUrl> findAll(Map<String, Object> params) {
		// TODO Auto-generated method stub
		return phoneUrlDao.findAll(params);
	}
	
	
	


}
